package com.majsubtense.core;

public abstract class Behaviour {
    protected Entity entity;
    protected BehaviourHandler behaviourHandler;

    public Behaviour(Entity entity, BehaviourHandler behaviourHandler) {
        this.entity = entity;
        this.behaviourHandler = behaviourHandler;
    }

    public void execute() {
        behaviourHandler.handle(entity);
    }

    //////////////////////////
    public void undo() {} ////
    //////////////////////////
}
